.class Les/c90$a;
.super Ljava/lang/Thread;
.source "FileShareServer.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/c90;-><init>(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/c90;


# direct methods
.method constructor <init>(Les/c90;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/c90$a;->a:Les/c90;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 28

    move-object/from16 v1, p0

    const-string v2, "items-number"

    const-string v3, "files-number"

    const-string v4, "/"

    .line 1
    sget-object v5, Les/c90;->h:Ljava/lang/String;

    const-string v6, "ESuser"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/k;->a()Ljava/lang/String;

    move-result-object v5

    sput-object v5, Les/c90;->h:Ljava/lang/String;

    .line 3
    :cond_0
    :goto_0
    :try_start_0
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    invoke-static {}, Les/c90;->a()Ljava/net/ServerSocket;

    move-result-object v6

    invoke-virtual {v6}, Ljava/net/ServerSocket;->accept()Ljava/net/Socket;

    move-result-object v6

    invoke-static {v5, v6}, Les/c90;->a(Les/c90;Ljava/net/Socket;)Ljava/net/Socket;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_9

    .line 4
    :try_start_1
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v5}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v5

    const/16 v6, 0x2710

    invoke-virtual {v5, v6}, Ljava/net/Socket;->setSoTimeout(I)V

    .line 5
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    new-instance v6, Ljava/io/DataInputStream;

    iget-object v7, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v7}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v7

    invoke-virtual {v7}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    invoke-static {v5, v6}, Les/c90;->a(Les/c90;Ljava/io/DataInputStream;)Ljava/io/DataInputStream;

    .line 6
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    new-instance v6, Ljava/io/DataOutputStream;

    iget-object v7, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v7}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v7

    invoke-virtual {v7}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    invoke-static {v5, v6}, Les/c90;->a(Les/c90;Ljava/io/DataOutputStream;)Ljava/io/DataOutputStream;

    .line 7
    new-instance v5, Ljava/util/Properties;

    invoke-direct {v5}, Ljava/util/Properties;-><init>()V

    .line 8
    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v6}, Les/c90;->c(Les/c90;)Ljava/io/DataInputStream;

    move-result-object v6

    invoke-static {v6}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v6

    .line 9
    new-instance v7, Ljava/util/StringTokenizer;

    invoke-direct {v7, v6}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;)V

    .line 10
    invoke-virtual {v7}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v8

    .line 11
    invoke-virtual {v6, v8}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v9

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v10

    add-int/2addr v9, v10

    const/4 v10, 0x1

    add-int/2addr v9, v10

    const-string v11, "HTTP/1"

    .line 12
    invoke-virtual {v6, v11}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v11

    sub-int/2addr v11, v10

    if-gez v11, :cond_1

    const-string v11, "http/1"

    .line 13
    invoke-virtual {v6, v11}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v11

    sub-int/2addr v11, v10

    :cond_1
    if-lez v11, :cond_2

    .line 14
    invoke-virtual {v6, v9, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    .line 15
    invoke-virtual {v7}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    goto :goto_1

    .line 16
    :cond_2
    invoke-virtual {v7}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v6

    .line 17
    :goto_1
    iget-object v7, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v7}, Les/c90;->c(Les/c90;)Ljava/io/DataInputStream;

    move-result-object v7

    invoke-static {v7}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v7

    .line 18
    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v9

    if-nez v9, :cond_28

    const-string v7, ""

    .line 19
    invoke-virtual {v6, v4, v7}, Ljava/lang/String;->replaceFirst(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    const-string v6, "GET"

    .line 20
    invoke-virtual {v8, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_6
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const-wide/16 v12, 0x0

    const-string v7, "Not found"

    const/16 v9, 0x194

    const-string v15, "content-length"

    if-eqz v6, :cond_5

    :try_start_2
    const-string v6, "hostname"

    .line 21
    invoke-virtual {v14, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_4

    .line 22
    invoke-virtual {v5, v15}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v5

    const/16 v7, 0xc8

    cmp-long v8, v5, v12

    if-lez v8, :cond_3

    .line 23
    new-instance v5, Ljava/io/DataInputStream;

    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v6}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v6

    invoke-virtual {v6}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    .line 24
    invoke-virtual {v5}, Ljava/io/DataInputStream;->readLine()Ljava/lang/String;

    move-result-object v5

    .line 25
    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    iget-object v8, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v8}, Les/c90;->d(Les/c90;)Ljava/io/DataOutputStream;

    move-result-object v8

    sget-object v9, Les/c90;->h:Ljava/lang/String;

    invoke-virtual {v6, v8, v7, v9}, Les/c90;->a(Ljava/io/OutputStream;ILjava/lang/String;)V

    .line 26
    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v6}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v6

    invoke-virtual {v6}, Ljava/net/Socket;->getInetAddress()Ljava/net/InetAddress;

    move-result-object v6

    .line 27
    invoke-virtual {v6}, Ljava/net/InetAddress;->getAddress()[B

    move-result-object v6

    .line 28
    invoke-static {v6, v5}, Les/m70;->b([BLjava/lang/String;)V

    .line 29
    new-instance v5, Les/c90$a$a;

    invoke-direct {v5, v1}, Les/c90$a$a;-><init>(Les/c90$a;)V

    invoke-static {v5}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    goto :goto_2

    .line 30
    :cond_3
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v6}, Les/c90;->d(Les/c90;)Ljava/io/DataOutputStream;

    move-result-object v6

    sget-object v8, Les/c90;->h:Ljava/lang/String;

    invoke-virtual {v5, v6, v7, v8}, Les/c90;->a(Ljava/io/OutputStream;ILjava/lang/String;)V

    goto :goto_2

    .line 31
    :cond_4
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v6}, Les/c90;->d(Les/c90;)Ljava/io/DataOutputStream;

    move-result-object v6

    invoke-virtual {v5, v6, v9, v7}, Les/c90;->a(Ljava/io/OutputStream;ILjava/lang/String;)V

    :goto_2
    move-object/from16 v23, v2

    move-object/from16 v24, v3

    goto/16 :goto_17

    :cond_5
    const-string v6, "MYPOST"

    .line 32
    invoke-virtual {v8, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_26

    .line 33
    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v6}, Les/c90;->e(Les/c90;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_6

    iget-object v6, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v6}, Les/c90;->e(Les/c90;)Ljava/lang/String;

    move-result-object v6

    :goto_3
    move-object/from16 v19, v6

    goto :goto_4

    :cond_6
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v7}, Les/c90;->e(Les/c90;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    goto :goto_3

    .line 34
    :goto_4
    invoke-virtual {v5, v15}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_7

    .line 35
    invoke-virtual {v5, v15}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v6

    move-wide/from16 v21, v6

    goto :goto_5

    :cond_7
    move-wide/from16 v21, v12

    .line 36
    :goto_5
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_8

    .line 37
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v6

    goto :goto_6

    :cond_8
    const/4 v6, 0x0

    :goto_6
    if-le v6, v10, :cond_9

    .line 38
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v8, "..."

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    goto :goto_7

    :cond_9
    move-object v7, v14

    .line 39
    :goto_7
    invoke-virtual {v5, v2}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_a

    .line 40
    invoke-virtual {v5, v2}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v8

    goto :goto_8

    :cond_a
    const/4 v8, 0x0

    :goto_8
    const-string v9, "sender-name"

    .line 41
    invoke-virtual {v5, v9}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 42
    invoke-static {v9}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v12
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_6
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    const-string v15, "thumbnail-image"

    const-string v13, "append-data"

    const-string v11, "application/files"

    const-string v10, "application/folder"

    move-object/from16 v23, v2

    const-string v2, "media/realtime"

    move-object/from16 v24, v3

    const-string v3, "content-type"

    if-nez v12, :cond_1c

    :try_start_3
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_b

    goto/16 :goto_12

    .line 43
    :cond_b
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v2

    invoke-virtual {v2}, Ljava/net/Socket;->getInetAddress()Ljava/net/InetAddress;

    move-result-object v2

    invoke-virtual {v2}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v2
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_5
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    move-object/from16 v26, v4

    const/16 v12, 0x2f

    .line 44
    :try_start_4
    invoke-virtual {v2, v12}, Ljava/lang/String;->indexOf(I)I

    move-result v4
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    move-object/from16 v25, v9

    const/4 v9, -0x1

    if-eq v4, v9, :cond_c

    .line 45
    :try_start_5
    invoke-virtual {v2, v12}, Ljava/lang/String;->indexOf(I)I

    move-result v4

    const/4 v9, 0x1

    add-int/2addr v4, v9

    invoke-virtual {v2, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    goto :goto_9

    :catch_0
    move-exception v0

    move-object v2, v0

    move-object/from16 v4, v26

    goto/16 :goto_19

    .line 46
    :cond_c
    :goto_9
    :try_start_6
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    if-eqz v4, :cond_d

    .line 47
    :try_start_7
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    const v5, 0x7f110448

    invoke-virtual {v4, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x1

    new-array v9, v5, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v7, v9, v5

    invoke-static {v4, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 48
    new-instance v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-object v4, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v4}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v4

    move-object v12, v3

    const/4 v9, 0x2

    move-object/from16 v15, v19

    move-object/from16 v16, v4

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Lcom/estrongs/android/pop/app/filetransfer/f$c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    .line 49
    iput v9, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->c:I
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_0
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    goto/16 :goto_c

    .line 50
    :cond_d
    :try_start_8
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_4
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    if-eqz v3, :cond_e

    .line 51
    :try_start_9
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    const v5, 0x7f110449

    invoke-virtual {v4, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x1

    new-array v9, v5, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v7, v9, v5

    invoke-static {v4, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 52
    new-instance v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-object v4, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v4}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v16

    move-object v12, v3

    move-object/from16 v15, v19

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Lcom/estrongs/android/pop/app/filetransfer/f$c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    const/4 v4, 0x3

    .line 53
    iput v4, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->c:I
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_0
    .catchall {:try_start_9 .. :try_end_9} :catchall_0

    goto/16 :goto_c

    .line 54
    :cond_e
    :try_start_a
    invoke-virtual {v5, v13}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_4
    .catchall {:try_start_a .. :try_end_a} :catchall_0

    if-eqz v3, :cond_12

    .line 55
    :try_start_b
    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_12

    .line 56
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    const v9, 0x7f11044a

    invoke-virtual {v4, v9}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v4

    const/4 v9, 0x1

    new-array v10, v9, [Ljava/lang/Object;

    const/4 v9, 0x0

    aput-object v7, v10, v9

    invoke-static {v4, v10}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 57
    new-instance v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-object v4, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v4}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v16

    move-object v12, v3

    move-object/from16 v15, v19

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Lcom/estrongs/android/pop/app/filetransfer/f$c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    const-string v4, "image-width"

    .line 58
    invoke-virtual {v5, v4}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    iput v4, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->n:I

    const-string v4, "image-height"

    .line 59
    invoke-virtual {v5, v4}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    iput v4, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->o:I

    .line 60
    iget v5, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->n:I

    mul-int v5, v5, v4

    mul-int/lit8 v5, v5, 0x4

    new-array v4, v5, [B

    iput-object v4, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->m:[B

    const/4 v11, 0x0

    .line 61
    :cond_f
    iget-object v4, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v4}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v4

    invoke-virtual {v4}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v4

    iget-object v5, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->m:[B

    iget-object v7, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->m:[B

    array-length v7, v7

    sub-int/2addr v7, v11

    invoke-virtual {v4, v5, v11, v7}, Ljava/io/InputStream;->read([BII)I

    move-result v4

    if-gtz v4, :cond_10

    goto :goto_a

    :cond_10
    add-int/2addr v11, v4

    .line 62
    iget-object v4, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->m:[B

    array-length v4, v4

    if-gt v4, v11, :cond_f

    .line 63
    :goto_a
    iget-object v4, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->m:[B

    array-length v4, v4

    if-lt v11, v4, :cond_11

    goto :goto_b

    .line 64
    :cond_11
    new-instance v2, Ljava/lang/Exception;

    const-string v3, "Read data error."

    invoke-direct {v2, v3}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v2
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_0
    .catchall {:try_start_b .. :try_end_b} :catchall_0

    .line 65
    :cond_12
    :try_start_c
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    const v5, 0x7f110449

    invoke-virtual {v4, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x1

    new-array v9, v5, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v7, v9, v5

    invoke-static {v4, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 66
    new-instance v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-object v4, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v4}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v16

    move-object v12, v3

    move-object/from16 v15, v19

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Lcom/estrongs/android/pop/app/filetransfer/f$c;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    :goto_b
    const/4 v4, 0x1

    .line 67
    iput v4, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->c:I

    .line 68
    :goto_c
    iput-object v2, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->h:Ljava/lang/String;

    .line 69
    iput v6, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->d:I

    .line 70
    iput v8, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->e:I

    .line 71
    invoke-static/range {v25 .. v25}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_1b

    iget-object v2, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->a:Ljava/lang/String;

    if-eqz v2, :cond_13

    goto/16 :goto_11

    .line 72
    :cond_13
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/l;->q0()Ljava/lang/String;

    move-result-object v2
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_4
    .catchall {:try_start_c .. :try_end_c} :catchall_0

    move-object/from16 v4, v26

    .line 73
    :try_start_d
    invoke-virtual {v2, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_14

    .line 74
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->j:Ljava/lang/String;

    goto :goto_d

    .line 75
    :cond_14
    iput-object v2, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->j:Ljava/lang/String;

    .line 76
    :goto_d
    new-instance v2, Ljava/io/File;

    iget-object v5, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->j:Ljava/lang/String;

    invoke-direct {v2, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 77
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_5
    .catchall {:try_start_d .. :try_end_d} :catchall_0

    if-nez v2, :cond_15

    .line 78
    :try_start_e
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v2

    iget-object v5, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->j:Ljava/lang/String;

    invoke-virtual {v2, v5}, Lcom/estrongs/fs/f;->o(Ljava/lang/String;)Z
    :try_end_e
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_e .. :try_end_e} :catch_1
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_5
    .catchall {:try_start_e .. :try_end_e} :catchall_0

    goto :goto_e

    :catch_1
    move-exception v0

    move-object v2, v0

    .line 79
    :try_start_f
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    .line 80
    :cond_15
    :goto_e
    invoke-static {}, Lcom/estrongs/android/pop/esclasses/ESActivity;->z()Landroid/app/Activity;

    move-result-object v2

    .line 81
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v5, v3}, Les/c90;->a(Les/c90;Lcom/estrongs/android/pop/app/filetransfer/f$c;)Z

    move-result v5

    if-nez v5, :cond_18

    .line 82
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    const v6, 0x7f1100e5

    .line 83
    invoke-virtual {v5, v6}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x1

    invoke-static {v5, v6, v7}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_5
    .catchall {:try_start_f .. :try_end_f} :catchall_0

    .line 84
    :try_start_10
    iget-object v5, v1, Les/c90$a;->a:Les/c90;

    iget-object v3, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->k:Ljava/net/Socket;

    invoke-virtual {v3}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3

    const/16 v6, 0x1f4

    const-string v7, "FAIL"

    invoke-virtual {v5, v3, v6, v7}, Les/c90;->a(Ljava/io/OutputStream;ILjava/lang/String;)V

    if-eqz v2, :cond_16

    .line 85
    instance-of v3, v2, Lcom/estrongs/android/pop/app/filetransfer/FileTransferReceiveActivity;

    if-eqz v3, :cond_16

    .line 86
    invoke-virtual {v2}, Landroid/app/Activity;->finish()V
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_2
    .catchall {:try_start_10 .. :try_end_10} :catchall_0

    goto :goto_f

    :catch_2
    move-exception v0

    move-object v2, v0

    .line 87
    :try_start_11
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_11
    .catch Ljava/lang/Exception; {:try_start_11 .. :try_end_11} :catch_5
    .catchall {:try_start_11 .. :try_end_11} :catchall_0

    .line 88
    :cond_16
    :goto_f
    :try_start_12
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v2

    if-eqz v2, :cond_17

    .line 89
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v2

    invoke-virtual {v2}, Ljava/net/Socket;->close()V
    :try_end_12
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_3

    goto :goto_10

    :catch_3
    move-exception v0

    move-object v2, v0

    .line 90
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    :cond_17
    :goto_10
    return-void

    :cond_18
    if-eqz v2, :cond_1a

    .line 91
    :try_start_13
    instance-of v5, v2, Lcom/estrongs/android/pop/app/filetransfer/FileTransferReceiveActivity;

    if-nez v5, :cond_19

    instance-of v2, v2, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    if-eqz v2, :cond_1a

    .line 92
    :cond_19
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    move-object/from16 v5, v25

    invoke-static {v2, v3, v5}, Les/c90;->a(Les/c90;Lcom/estrongs/android/pop/app/filetransfer/f$c;Ljava/lang/String;)V

    goto/16 :goto_16

    :cond_1a
    move-object/from16 v5, v25

    .line 93
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2, v3, v5}, Les/c90;->a(Les/c90;Ljava/lang/Object;Ljava/lang/String;)V

    goto/16 :goto_16

    :cond_1b
    :goto_11
    move-object/from16 v4, v26

    .line 94
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2, v3}, Les/c90;->a(Les/c90;Ljava/lang/Object;)V

    goto/16 :goto_16

    :catch_4
    move-exception v0

    move-object/from16 v4, v26

    goto/16 :goto_18

    :cond_1c
    :goto_12
    const/4 v9, 0x2

    .line 95
    iget-object v12, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v12}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v12

    invoke-virtual {v12}, Ljava/net/Socket;->getInetAddress()Ljava/net/InetAddress;

    move-result-object v12

    invoke-virtual {v12}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v12

    move/from16 v25, v8

    const/16 v9, 0x2f

    .line 96
    invoke-virtual {v12, v9}, Ljava/lang/String;->indexOf(I)I

    move-result v8

    move/from16 v27, v6

    const/4 v6, -0x1

    if-eq v8, v6, :cond_1d

    .line 97
    invoke-virtual {v12, v9}, Ljava/lang/String;->indexOf(I)I

    move-result v6

    const/4 v8, 0x1

    add-int/2addr v6, v8

    invoke-virtual {v12, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v12

    :cond_1d
    move-object v6, v12

    .line 98
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1f

    .line 99
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v7, 0x7f110447

    invoke-virtual {v3, v7}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v7, 0x1

    new-array v7, v7, [Ljava/lang/Object;

    invoke-static {v14}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const/4 v9, 0x0

    aput-object v8, v7, v9

    invoke-static {v3, v7}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v17

    .line 100
    new-instance v2, Les/o70$d;

    invoke-static {v14}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v18

    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v20

    move-object/from16 v16, v2

    invoke-direct/range {v16 .. v22}, Les/o70$d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    .line 101
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "http://"

    invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v7, "host"

    invoke-virtual {v5, v7}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Les/o70$d;->a:Ljava/lang/String;

    .line 102
    invoke-virtual {v14, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_1e

    .line 103
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, v2, Les/o70$d;->a:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Les/o70$d;->a:Ljava/lang/String;

    goto/16 :goto_15

    .line 104
    :cond_1e
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, v2, Les/o70$d;->a:Ljava/lang/String;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Les/o70$d;->a:Ljava/lang/String;

    goto/16 :goto_15

    .line 105
    :cond_1f
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_20

    .line 106
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v5, 0x7f110448

    invoke-virtual {v3, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v8, 0x0

    aput-object v7, v5, v8

    invoke-static {v3, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 107
    new-instance v2, Les/o70$d;

    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v16

    move-object v12, v2

    move-object/from16 v15, v19

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Les/o70$d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    const/4 v3, 0x2

    .line 108
    iput v3, v2, Les/o70$d;->b:I

    goto/16 :goto_15

    .line 109
    :cond_20
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_21

    .line 110
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v5, 0x7f110449

    invoke-virtual {v3, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v8, 0x0

    aput-object v7, v5, v8

    invoke-static {v3, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 111
    new-instance v2, Les/o70$d;

    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v16

    move-object v12, v2

    move-object/from16 v15, v19

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Les/o70$d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    const/4 v3, 0x3

    .line 112
    iput v3, v2, Les/o70$d;->b:I

    goto/16 :goto_15

    .line 113
    :cond_21
    invoke-virtual {v5, v13}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_25

    .line 114
    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, v15}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_25

    .line 115
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v8, 0x7f11044a

    invoke-virtual {v3, v8}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v8, 0x1

    new-array v9, v8, [Ljava/lang/Object;

    const/4 v8, 0x0

    aput-object v7, v9, v8

    invoke-static {v3, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 116
    new-instance v2, Les/o70$d;

    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v16

    move-object v12, v2

    move-object/from16 v15, v19

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Les/o70$d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    const-string v3, "image-width"

    .line 117
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    iput v3, v2, Les/o70$d;->m:I

    const-string v3, "image-height"

    .line 118
    invoke-virtual {v5, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    iput v3, v2, Les/o70$d;->n:I

    .line 119
    iget v5, v2, Les/o70$d;->m:I

    mul-int v5, v5, v3

    mul-int/lit8 v5, v5, 0x4

    new-array v3, v5, [B

    iput-object v3, v2, Les/o70$d;->l:[B

    const/4 v11, 0x0

    .line 120
    :cond_22
    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v3

    invoke-virtual {v3}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v3

    iget-object v5, v2, Les/o70$d;->l:[B

    iget-object v7, v2, Les/o70$d;->l:[B

    array-length v7, v7

    sub-int/2addr v7, v11

    invoke-virtual {v3, v5, v11, v7}, Ljava/io/InputStream;->read([BII)I

    move-result v3

    if-gtz v3, :cond_23

    goto :goto_13

    :cond_23
    add-int/2addr v11, v3

    .line 121
    iget-object v3, v2, Les/o70$d;->l:[B

    array-length v3, v3

    if-gt v3, v11, :cond_22

    .line 122
    :goto_13
    iget-object v3, v2, Les/o70$d;->l:[B

    array-length v3, v3

    if-lt v11, v3, :cond_24

    goto :goto_14

    .line 123
    :cond_24
    new-instance v2, Ljava/lang/Exception;

    const-string v3, "Read data error."

    invoke-direct {v2, v3}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    throw v2

    .line 124
    :cond_25
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v5, 0x7f110449

    invoke-virtual {v3, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v5, 0x1

    new-array v8, v5, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v7, v8, v5

    invoke-static {v3, v8}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    .line 125
    new-instance v2, Les/o70$d;

    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v16

    move-object v12, v2

    move-object/from16 v15, v19

    move-wide/from16 v17, v21

    invoke-direct/range {v12 .. v18}, Les/o70$d;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/Socket;J)V

    :goto_14
    const/4 v3, 0x1

    .line 126
    iput v3, v2, Les/o70$d;->b:I

    .line 127
    :goto_15
    iput-object v6, v2, Les/o70$d;->g:Ljava/lang/String;

    move/from16 v6, v27

    .line 128
    iput v6, v2, Les/o70$d;->c:I

    move/from16 v8, v25

    .line 129
    iput v8, v2, Les/o70$d;->d:I

    .line 130
    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3, v2}, Les/c90;->a(Les/c90;Ljava/lang/Object;)V

    .line 131
    :goto_16
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    const/4 v3, 0x0

    invoke-static {v2, v3}, Les/c90;->a(Les/c90;Ljava/net/Socket;)Ljava/net/Socket;

    goto :goto_17

    :cond_26
    move-object/from16 v23, v2

    move-object/from16 v24, v3

    const-string v2, "OFFLINE"

    .line 132
    invoke-virtual {v8, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_27

    .line 133
    new-instance v2, Les/c90$a$b;

    invoke-direct {v2, v1}, Les/c90$a$b;-><init>(Les/c90$a;)V

    invoke-static {v2}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    goto :goto_17

    .line 134
    :cond_27
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->d(Les/c90;)Ljava/io/DataOutputStream;

    move-result-object v3

    invoke-virtual {v2, v3, v9, v7}, Les/c90;->a(Ljava/io/OutputStream;ILjava/lang/String;)V
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_13} :catch_5
    .catchall {:try_start_13 .. :try_end_13} :catchall_0

    .line 135
    :goto_17
    :try_start_14
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v2

    if-eqz v2, :cond_2a

    .line 136
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v2

    invoke-virtual {v2}, Ljava/net/Socket;->close()V
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_7

    goto :goto_1a

    :cond_28
    move-object/from16 v23, v2

    move-object/from16 v24, v3

    const/4 v3, 0x1

    const/16 v2, 0x3a

    .line 137
    :try_start_15
    invoke-virtual {v7, v2}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    if-ltz v2, :cond_29

    const/4 v9, 0x0

    .line 138
    invoke-virtual {v7, v9, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v9

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v7, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v5, v9, v2}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_15 .. :try_end_15} :catch_5
    .catchall {:try_start_15 .. :try_end_15} :catchall_0

    :cond_29
    move-object/from16 v2, v23

    move-object/from16 v3, v24

    const/4 v10, 0x1

    goto/16 :goto_1

    :catch_5
    move-exception v0

    goto :goto_18

    :catchall_0
    move-exception v0

    move-object v2, v0

    goto :goto_1b

    :catch_6
    move-exception v0

    move-object/from16 v23, v2

    move-object/from16 v24, v3

    :goto_18
    move-object v2, v0

    .line 139
    :goto_19
    :try_start_16
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_16
    .catchall {:try_start_16 .. :try_end_16} :catchall_0

    .line 140
    :try_start_17
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v2

    if-eqz v2, :cond_2a

    .line 141
    iget-object v2, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v2}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v2

    invoke-virtual {v2}, Ljava/net/Socket;->close()V
    :try_end_17
    .catch Ljava/lang/Exception; {:try_start_17 .. :try_end_17} :catch_7

    goto :goto_1a

    :catch_7
    move-exception v0

    move-object v2, v0

    .line 142
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    :cond_2a
    :goto_1a
    move-object/from16 v2, v23

    move-object/from16 v3, v24

    goto/16 :goto_0

    .line 143
    :goto_1b
    :try_start_18
    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v3

    if-eqz v3, :cond_2b

    .line 144
    iget-object v3, v1, Les/c90$a;->a:Les/c90;

    invoke-static {v3}, Les/c90;->a(Les/c90;)Ljava/net/Socket;

    move-result-object v3

    invoke-virtual {v3}, Ljava/net/Socket;->close()V
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_18 .. :try_end_18} :catch_8

    goto :goto_1c

    :catch_8
    move-exception v0

    move-object v3, v0

    .line 145
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

    .line 146
    :cond_2b
    :goto_1c
    throw v2

    :catch_9
    return-void
.end method
